package com.doit.demo02;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class test01_buffer {
    public static void main(String[] args) throws IOException {
        BufferedWriter bw = new BufferedWriter(new FileWriter("day21\\buffer\\2.txt"));
        bw.write("sd");
        bw.newLine();
        bw.flush();
        bw.write("gd");
        bw.newLine();
        bw.write("白日依山尽,黄河入海流");

        bw.close();
    }
}
